package day14.edu;
// Created: 14/09/2025, ChangJiang Ru
public class HappyNewYear {
    public static void main(String[] args) {

        for (int i = 10; i >= 0; i--) {
            try{
            Thread.sleep(1000);
            }catch(InterruptedException e)
            {
                e.printStackTrace();
            }

            /*
            if(i == 0)
            {
                System.out.println("Happy New Year!");
                break;
            }

            System.out.println("The next time is : " + i + " second");

             */

            if(i > 0)
                System.out.println("The next time is : " + i + " second");
            else
                System.out.println("Happy New Year!");
        }
    }
}
